package com.demo.apparel.service.web;


import com.demo.apparel.dto.web.AgreementPageQueryDTO;
import com.demo.apparel.entity.Agreement;
import com.demo.apparel.vo.PageVO;

import java.util.List;

public interface WebAgreementService {
    /**
     * 提交协议版本
     * @param agreement
     * @return
     */
    Agreement saveAgreement(Agreement agreement);

    List<Agreement> getAllAgreements();

    Agreement getAgreementById(String id);

    /**
     * 分页查询协议
     * @param dto 查询条件
     * @return 分页结果
     */
    PageVO<Agreement> pageQueryAgreements(AgreementPageQueryDTO dto);

}
